package com.transaction.manage.model.dto;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "fund_yield")
public class FundYield {
    @Id
    private Integer id;

    /**
     * 渠道编码
     */
    @Column(name = "channel_code")
    private String channelCode;
    private String channelName;

    /**
     * 产品编码
     */
    @Column(name = "fund_code")
    private String fundCode;
    private String fundName;

    /**
     * 受益类别
     */
    @Column(name = "yield_type")
    private String yieldType;

    /**
     * 收益率
     */
    @Column(name = "yield_rate")
    private BigDecimal yieldRate;

    /**
     * 起始金额
     */
    @Column(name = "begin_amount")
    private BigDecimal beginAmount;

    /**
     * 结束金额
     */
    @Column(name = "end_amount")
    private BigDecimal endAmount;

    /**
     * 操作状态：01：新增；02：修改：00：删除
     */
    @Column(name = "valid_flag")
    private String validFlag;

    /**
     * 复核状态；00：未复核；01：已复核
     */
    @Column(name = "check_flag")
    private String checkFlag;

    private Date utime;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取渠道编码
     *
     * @return channel_code - 渠道编码
     */
    public String getChannelCode() {
        return channelCode;
    }

    /**
     * 设置渠道编码
     *
     * @param channelCode 渠道编码
     */
    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    /**
     * 获取产品编码
     *
     * @return fund_code - 产品编码
     */
    public String getFundCode() {
        return fundCode;
    }

    /**
     * 设置产品编码
     *
     * @param fundCode 产品编码
     */
    public void setFundCode(String fundCode) {
        this.fundCode = fundCode;
    }

    public String getFundName() {
        return fundName;
    }

    public void setFundName(String fundName) {
        this.fundName = fundName;
    }

    /**
     * 获取受益类别
     *
     * @return yield_type - 受益类别
     */
    public String getYieldType() {
        return yieldType;
    }

    /**
     * 设置受益类别
     *
     * @param yieldType 受益类别
     */
    public void setYieldType(String yieldType) {
        this.yieldType = yieldType;
    }

    /**
     * 获取收益率
     *
     * @return yield_rate - 收益率
     */
    public BigDecimal getYieldRate() {
        return yieldRate;
    }

    /**
     * 设置收益率
     *
     * @param yieldRate 收益率
     */
    public void setYieldRate(BigDecimal yieldRate) {
        this.yieldRate = yieldRate;
    }

    /**
     * 获取起始金额
     *
     * @return begin_amount - 起始金额
     */
    public BigDecimal getBeginAmount() {
        return beginAmount;
    }

    /**
     * 设置起始金额
     *
     * @param beginAmount 起始金额
     */
    public void setBeginAmount(BigDecimal beginAmount) {
        this.beginAmount = beginAmount;
    }

    /**
     * 获取结束金额
     *
     * @return end_amount - 结束金额
     */
    public BigDecimal getEndAmount() {
        return endAmount;
    }

    /**
     * 设置结束金额
     *
     * @param endAmount 结束金额
     */
    public void setEndAmount(BigDecimal endAmount) {
        this.endAmount = endAmount;
    }

    /**
     * 获取操作状态：01：新增；02：修改：00：删除
     *
     * @return valid_flag - 操作状态：01：新增；02：修改：00：删除
     */
    public String getValidFlag() {
        return validFlag;
    }

    /**
     * 设置操作状态：01：新增；02：修改：00：删除
     *
     * @param validFlag 操作状态：01：新增；02：修改：00：删除
     */
    public void setValidFlag(String validFlag) {
        this.validFlag = validFlag;
    }

    /**
     * 获取复核状态；00：未复核；01：已复核
     *
     * @return check_flag - 复核状态；00：未复核；01：已复核
     */
    public String getCheckFlag() {
        return checkFlag;
    }

    /**
     * 设置复核状态；00：未复核；01：已复核
     *
     * @param checkFlag 复核状态；00：未复核；01：已复核
     */
    public void setCheckFlag(String checkFlag) {
        this.checkFlag = checkFlag;
    }

    /**
     * @return utime
     */
    public Date getUtime() {
        return utime;
    }

    /**
     * @param utime
     */
    public void setUtime(Date utime) {
        this.utime = utime;
    }
}